﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:MidimediaFinder"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="MidimediaFinder.PromotionPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Pivot Name="PivotControl" Title="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}">

            <controls:PivotItem Name="Pivot_Registry" Header="{Binding Path=Strings.Registry, Source={StaticResource LocalizedStrings }}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="500*" />

                    </Grid.RowDefinitions>
                    <ScrollViewer >

                        <StackPanel >

                            <!--<Image Name="HintImg" Source="/MidimediaFinder;component/Images/hint.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />-->
                            <TextBlock Name ="HintLabel" Text="{Binding Path=Strings.Hint, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,0,0,0" />
                            <TextBlock Name ="HintArea" Text="a " TextWrapping="Wrap" Margin="70,0,0,0" FontSize="30"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                            <Image Name="Short_DescImg" Source="/MidimediaFinder;component/Images/shortdescription.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="Short_DescLabel" Text="{Binding Path=Strings.Short_Desc, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <TextBlock Name ="Short_DescArea" Text=" " TextWrapping="Wrap" Margin="70,-35,0,0" FontSize="30"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>


                            <Image Name="StartDateImg" Source="/MidimediaFinder;component/Images/startdate.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="StartDateLabel" Text="{Binding Path=Strings.StartDate, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <TextBlock Name ="StartDateArea" Text=" " TextWrapping="Wrap" Margin="70,-35,0,0" FontSize="30"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                            <Image Name="StartTimeImg" Source="/MidimediaFinder;component/Images/starttime1.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="StartTimeLabel" Text="{Binding Path=Strings.StartTime, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <TextBlock Name ="StartTimeArea" Text=" " TextWrapping="Wrap" Margin="70,-35,0,0"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                            <Image Name="EndDateImg" Source="/MidimediaFinder;component/Images/enddate.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="EndDateLabel" Text="{Binding Path=Strings.EndDate, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <TextBlock Name ="EndDateArea" Text=" " TextWrapping="Wrap" Margin="70,-35,0,0"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                            <Image Name="EndTimeImg" Source="/MidimediaFinder;component/Images/endtime.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="EndTimeLabel" Text="{Binding Path=Strings.EndTime, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <TextBlock Name ="EndTimeArea" Text=" " TextWrapping="Wrap" Margin="70,-35,0,0"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                            <TextBlock Name ="DescriptionLabel" Text="{Binding Path=Strings.Description, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" FontSize="24"/>
                            <TextBlock Name ="DescriptionArea" Text="" TextWrapping="Wrap" Height="300"/>

                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>
                            <Button Name="PromoterButton" Content="{Binding Path=Strings.Promoter, Source={StaticResource LocalizedStrings }}" Click="PromoterButton_Click"/>

                            <Image Name="ShareImg" Source="/MidimediaFinder;component/Images/share.png" Width="60" Height="60" Margin="0,0,0,0" HorizontalAlignment="Left" />
                            <TextBlock Name ="MapLabel" Text="{Binding Path=Strings.Share, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" Margin="70,-60,0,0" />
                            <Button Name="ShareEMailButton" Content="{Binding Path=Strings.ShareEmail, Source={StaticResource LocalizedStrings }}" Click="ShareEMailButton_Click"/>
                            <Button Name="ShareSMsButton" Content="{Binding Path=Strings.ShareSMS, Source={StaticResource LocalizedStrings }}" Click="ShareSMsButton_Click"/>
                            <TextBlock Text=" " TextWrapping="Wrap" FontSize="10"/>

                        </StackPanel>
                    </ScrollViewer>

                </Grid>
            </controls:PivotItem>
            
            <controls:PivotItem Name="Pivot_Bonus" Header="{Binding Path=Strings.Bonus, Source={StaticResource LocalizedStrings }}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="500*" />

                    </Grid.RowDefinitions>
                    <ScrollViewer >

                        <StackPanel >
                            <TextBlock Name ="BonusLabel" Text="{Binding Path=Strings.Bonus_desc, Source={StaticResource LocalizedStrings }}" TextWrapping="NoWrap" />
                            <TextBlock Name ="BonusArea" Text="" TextWrapping="NoWrap" />
                            
                        </StackPanel>
                    </ScrollViewer>

                </Grid>
            </controls:PivotItem>


        </controls:Pivot>
    </Grid>

</phone:PhoneApplicationPage>